package com.order.promotion.mapper;

import java.util.List;
import com.order.promotion.domain.OrderPromotion;

/**
 * 食品宣传Mapper接口
 * 
 * @author huhu
 * @date 2020-08-29
 */
public interface OrderPromotionMapper 
{
    /**
     * 查询食品宣传
     * 
     * @param promotionId 食品宣传ID
     * @return 食品宣传
     */
    public OrderPromotion selectOrderPromotionById(Long promotionId);

    /**
     * 查询食品宣传列表
     * 
     * @param orderPromotion 食品宣传
     * @return 食品宣传集合
     */
    public List<OrderPromotion> selectOrderPromotionList(OrderPromotion orderPromotion);

    /**
     * 新增食品宣传
     * 
     * @param orderPromotion 食品宣传
     * @return 结果
     */
    public int insertOrderPromotion(OrderPromotion orderPromotion);

    /**
     * 修改食品宣传
     * 
     * @param orderPromotion 食品宣传
     * @return 结果
     */
    public int updateOrderPromotion(OrderPromotion orderPromotion);

    /**
     * 删除食品宣传
     * 
     * @param promotionId 食品宣传ID
     * @return 结果
     */
    public int deleteOrderPromotionById(Long promotionId);

    /**
     * 批量删除食品宣传
     * 
     * @param promotionIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrderPromotionByIds(String[] promotionIds);


    List<OrderPromotion> selectPromotionId();
}
